
import { uploadAction } from '@/api/manage'

export function uploadImageFile(file) {
    return new Promise((resolve, reject) => {
        let formData = new FormData()
        formData.append('file',file)
        uploadAction(window._CONFIG['domianURL'] + '/file/upload', formData).then((res) => {
            if (res.success) {
                resolve(res)
            }
        }).catch((err) => {
            reject(err)

        })
    })     
}



